#include "testWindow.h"
#include<iostream>
#include<QApplication>
#include<QTimer>

/*----------------------------------Test .h--------------------------------*/
#include"test_draw_buffer/test_draw_buffer.h"
#include"test_draw_bubble/test_draw_bubble.h"



/*--------------------------------------------------------------------------*/

int main(int argc, char **argv)
{
    QApplication app( argc, argv);

    std::cout<<"GLTest"<<std::endl;

    TestWindow  testWindow ;


    TestGLWidget* defaultcase = new TestGLWidget;
    test_draw_buffer::TestCase * case1 = new test_draw_buffer::TestCase;
    test_draw_bubble::TestCase * case2 = new test_draw_bubble::TestCase;
;    testWindow.add(defaultcase);
    testWindow.add(case1);
    testWindow.add(case2);

    testWindow.run();

    QTimer::singleShot(5000, &app, SLOT(quit()));

    return app.exec();
}
